-----------------------------------
-- Area: Selbina
-- NPC:  Tilala
-- Guild Merchant NPC: Clothcrafting Guild 
-- @pos 14.344 -7.912 10.276 248
-----------------------------------
package.loaded["scripts/zones/Selbina/TextIDs"] = nil;
-----------------------------------

require("scripts/globals/settings");
require("scripts/globals/shop");
require("scripts/zones/Selbina/TextIDs");

-----------------------------------
-- onTrade Action
-----------------------------------

function onTrade(player,npc,trade)
end; 

-----------------------------------
-- onTrigger Action
-----------------------------------

function onTrigger(player,npc)
	
player:showText(npc,MATOAKA_SHOP_DIALOG);

stock = {18763,100000, -- Trainee Scissors
         1279,100000, -- Taffeta Cloth  
         822,1300, -- Silver Thread
         823,1300, -- Gold Thread
         2843,10000, -- Lineadach
         844,1500, -- Phoenix Feather
         821,1400, -- Rainbow Thread
         693,122, -- walnut log
         695,40, -- willow log
         696,89, -- yew log
         919,600, -- moss
         15761,2000, -- chariot band
         1246,51, -- blood heads
         1247,40, -- sleep head
         1243,41, -- acid head
         17211,5000, -- alm bow
         693,50000, -- walnut log
         695,50000, -- willow log
         696,50000, -- yew log
         0x3c56,50000, -- doesnt work
         0x3dcd,50000, -- doesnt work
         0x383a,50000, -- doesnt work
         0x3679,50000, -- doesnt work
         0x3c58,50000, -- doesnt work
         0x390f,50000, -- doesnt work
         0x3dcf,50000, -- doesnt work
         0x383c,50000, -- doesnt work
         0x3c55,50000, -- doesnt work
         0x39ef,50000, -- doesnt work
         0x3dcc,50000, -- doesnt work
	 0x3839,50000} -- doesnt work

 
showShop(player, STATIC, stock);
end; 	    
 

-----------------------------------
-- onEventUpdate
-----------------------------------

function onEventUpdate(player,csid,option)
--printf("CSID: %u",csid);
--printf("RESULT: %u",option);
end;

-----------------------------------
-- onEventFinish
-----------------------------------

function onEventFinish(player,csid,option)
--printf("CSID: %u",csid);
--printf("RESULT: %u",option);
end;



